package com.ashen.study.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 * @author hxl
 * @Classname ParameterAspect
 * @Description 参数匹配AOP
 * @Date 2019/9/23 15:52
 */
@Aspect
@Component
public class ParameterAspect {
    /**execution参数匹配表达式示例**/
    @Pointcut("execution(**..delete(long )) && within(com.ashen.study.service.impl.*)")
    public void parameterAop() {

    }
    /**args参数匹配示例例**/
    @Pointcut("within(com.ashen.study.service.impl.*) && args(Integer)")
    public void parameterAop1() {

    }

//    @Before("parameterAop()")
//    public void before() {
//        System.out.println("测试参数匹配............................................................................................");
//    }
}
